﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="ProcolDemo.ProfIdeas" Title="ProfIdeas" Codebehind="ProfIdeas.aspx.cs" %>
<%--<%@ Import Namespace="ProcolDemo.ProfIdeasReference"%>--%>
<%@ Import Namespace="ProcolServices"%>

<asp:Content ID="Content1" ContentPlaceHolderID="PHtitle" runat="Server">
    Procol | Ideas - Professor
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PHCSS" runat="Server">
    <link rel="stylesheet" href="CSS/index.css" type="text/css" media="screen" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PHsidebar" runat="Server">
    <div id="myideas">
        <h1>
           <asp:Label ID="AUTO_PROFIDEAS_MYIDEAS" runat="server" /> </h1>
        <p>
            <asp:Label ID="AUTO_PROFIDEAS_NEWSIDEAS" runat="server" /></p>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PHcontent" runat="Server">

    <!--   SEARCH   -->
    <div id="searchIdea" runat="server" class="contentContainer">
        <asp:Panel ID="PanelSearch" runat="server">
            <table width="651"><tr>
            <td align="left" style="padding-left:50px; padding-top:10px;">
            <asp:TextBox ID="txtSearchProf" runat="server" BorderWidth="1px" Width="200" autocomplete="off"
                onkeypress="return CkKeyPress(event);" onkeydown="return CkKeyPress(event);"
                Font-Size="12px" AutoCompleteType="Disabled" AutoPostBack="True"
                BackColor="White" OnTextChanged="txtSearchProf_TextChanged" />
            <asp:Button ID="AUTO_SimpleSearchProf" runat="server"  
                onclick="SimpleSearch_Click" />
            </td>
            <td align="right">
            <div id="advancedSearchTitle" runat="server">
            <h1><asp:Label ID="AUTO_PROFIDEAS_SEARCH" runat="server" />
            <asp:Image ID="searchIdeasExpColImg" runat="server" ImageUrl="~/images/expand.jpg" />
            </h1>
            </div>
            </td>
            </tr></table>
        </asp:Panel>
        <asp:Panel ID="searchIdeasPanelProf" runat="server">
            <br /><br />
            <center>
            <table width="600" style="border-width:0px;">
                <tr height="40">
                <td width="50%" align="right"><span class="h2projects"><asp:Label ID="AUTO_PROFIDEAS_CATEGORY" runat="server" />:</span></td>
                <td width="50%" align="left">
                    <select name="cathgory">
                    <option>Choose category</option>
                    <option>Computer</option>
                    <option>Economy</option>
                    <option>Science</option>
                    <option>Design</option>
                    <option>Art</option>
                    <option>Social</option>
                    </select>
                </td>
                </tr>
                <tr height="40">
                <td width="50%" align="right"><span class="h2projects"><asp:Label ID="AUTO_PROFIDEAS_MAJOR" runat="server" />:</span></td>
                <td width="50%" align="left">
                    <select name="major">
                        <option></option>
                        <option></option>
                    </select>
                </td>
                </tr>
                <tr height="40">
                <td width="50%" align="right"><span class="h2projects"><asp:Label ID="AUTO_PROFIDEAS_SEMESTER" runat="server" />:</span></td>
                <td width="50%" align="left">
                    <select name="semester">
                        <option>Choose semester</option>
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                        <option>4</option>
                        <option>5</option>
                        <option>6</option>
                        <option>7</option>
                        <option>8</option>
                        <option>9</option>
                        <option>10</option>
                    </select>
                </td>
                </tr>
                <tr height="40">
                <td align="center" colspan="2">
                    <asp:Button runat="server" id="AUTO_AdvancedSearchProf" CssClass="MyTeams"/>
                </td>
                </tr>
            </table>
            </center>
        </asp:Panel>
        <ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server"
            TargetControlID="searchIdeasPanelProf"
            CollapsedSize="0"
            ExpandedSize="200"
            Collapsed="True"
            ExpandControlID="advancedSearchTitle"
            CollapseControlID="advancedSearchTitle"
            AutoCollapse="False"
            AutoExpand="False"
            ImageControlID="searchIdeasExpColImg"
            ExpandedImage="~/images/collapse.jpg"
            CollapsedImage="~/images/expand.jpg"
            ExpandDirection="Vertical"/>
        <ajaxToolkit:AutoCompleteExtender ID="txtSearch_ProfAutoCompleteExtender" runat="server"
            DelimiterCharacters="" Enabled="True" ServicePath="~/Proxies/IdeasProxy.asmx"
            ServiceMethod="GetIdeasNames" TargetControlID="txtSearchProf" MinimumPrefixLength="1"
            CompletionInterval="1" />
    </div>
    
    
   
    <%--CREATE A PROJECT OUT OF AN IDEA IS STILL MISSING!--%>
    <!--   MY IDEAS   -->
    <div id="myIdeas" runat="server" class="contentContainerFollow">
        <asp:Panel ID="MyIdeasHeaderPanel" runat="server">
            <h1><asp:Label ID="AUTO_PROFIDEAS_GUIDINGIDEAS" runat="server" />
            <asp:Image ID="MyIdeasPanelExpImg" runat="server" ImageUrl="~/images/expand.jpg" />
            </h1>
        </asp:Panel>
        <asp:Panel ID="MyIdeasBodyPanel" runat="server">
            <br /><br /><br /><br />
            <p><span class="h2AnyElse"><asp:Label ID="AUTO_PROFIDEAS_SUBTITTLE" runat="server" />There are no Ideas.</span></p>
        </asp:Panel>
        <ajaxToolkit:CollapsiblePanelExtender ID="cpeCreateInterests" runat="Server"
            TargetControlID="MyIdeasBodyPanel"
            CollapsedSize="0"
            ExpandedSize="235"
            Collapsed="True"
            ExpandControlID="MyIdeasHeaderPanel"
            CollapseControlID="MyIdeasHeaderPanel"
            AutoCollapse="False"
            AutoExpand="False"
            ImageControlID="MyIdeasPanelExpImg"
            ExpandedImage="~/images/collapse.jpg"
            CollapsedImage="~/images/expand.jpg"
            ExpandDirection="Vertical" />
    </div>

    <!--   RESULTS   -->
    <div id="results" runat="server">
        <br />
        <center>
        <table align="center" width="650" style="border-width:1px; border-collapse:collapse;">
            <tr bgcolor="#808080">
                <td width="55%" style="border-width:1px; border-style:solid; border-color:#FFFFFF;" height="30" align="center"><span style="color:White; font-weight:bold;"><asp:Label ID="AUTO_PROFIDEAS_TNAME" runat="server" /></span></td>
                <td width="15%" style="border-width:1px; border-style:solid; border-color:#FFFFFF;" height="30" align="center"><span style="color:White; font-weight:bold;"><asp:Label ID="AUTO_PROFIDEAS_TRATING" runat="server" /></span></td>
                <td width="15%" style="border-width:1px; border-style:solid; border-color:#FFFFFF;" height="30" align="center"><span style="color:White; font-weight:bold;"><asp:Label ID="AUTO_PROFIDEAS_TDATE" runat="server" /></span></td>
                <td width="15%" style="border-width:1px; border-style:solid; border-color:#FFFFFF;" height="30" align="center"><span style="color:White; font-weight:bold;"><asp:Label ID="AUTO_PROFIDEAS_TOPTIONS" runat="server" /></span></td>
            </tr>
            <%--<asp:Repeater ID="ShowResults" runat="server">
                <ItemTemplate>
                    <tr bgcolor="#E8EFF7" onmouseover="this.bgColor='#CCCCCC';" onmouseout="this.bgColor='#FFFFFF';">
                        <td style="border-width:1px; border-style:solid; border-color:#cccccc; cursor:pointer" height="30" width="55%" onclick="document.location.href='Ideas.aspx?op=viewIdea&idIdea=<%# ((IdeaBean)Container.DataItem).ideaId %>';">
                            &nbsp;
                            <%# ((IdeaBean)Container.DataItem).name %>
                        </td>
                        <td style="border-width:1px; border-style:solid; border-color:#cccccc;" height="30" width="15%" align="left">
                            &nbsp;&nbsp;<img id="Img1" src="~/images/star.gif" runat="server" /><img id="Img2" src="~/images/star.gif" runat="server" /><img id="Img3" src="~/images/star.gif" runat="server" /><img id="Img4" src="~/images/star.gif" runat="server" /><img id="Img5" src="~/images/star.gif" runat="server" />
                        </td>
                        <td style="border-width:1px; border-style:solid; border-color:#cccccc;" height="30" width="15%" align="center">
                            <%# ((IdeaBean)Container.DataItem).dateCreated.Day %>/<%# ((IdeaBean)Container.DataItem).dateCreated.Month %>/<%# ((IdeaBean)Container.DataItem).dateCreated.Year %>
                        </td>
                        <td style="border-width:1px; border-style:solid; border-color:#cccccc;" height="30" width="15%">&nbsp;</td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>--%>
        </table>
        </center>
    </div>
</asp:Content>
